#include<iostream>
using namespace std;
#include<vector>
vector<int> a[100];
int same(vector<int> c, vector<int> b)
{
	int i = 0;
	for (i; i < 5; i+=2)
	{
		if (c[i] - b[i] != c[i + 1] - b[i + 1])
			return 0;
	}
	return 1;
}
int main()
{
	int n;
	cin >> n;
	int i = 0;
	for (i; i < n; i++)
	{
		int j = 0;
		int flag = 0;
		for (j; j < 6; j++)
		{
			int m = 0;
			cin >> m;
			a[i].push_back(m);
			if (j >= 1)
			{
				if (a[i][j] < a[i][j - 1])
					flag = 1;
			}
		}
		if (flag)
		{
			int k = 0;
			for (k; k < 3; k++)
			{
				int tmp = a[i][k];
				a[i][k] = a[i][5 - k];
				a[i][5 - k] = tmp;
			}
		}
	}
	int flag = 0;

	for (i = 0; i < n; i++)
	{
		int j = 0;
		for (j = i + 1; j < n; j++)
		{
			if (same(a[i], a[j])==1)
			{
				flag = 1;
				break;
			}
		}
		if (flag == 1)
			break;
	}
	if (flag)
		cout << "Twin snowflakes found." << endl;
	else
		cout << "No two snowflakes are alike." << endl;
}